﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Evaluant.Uss.SqlMapper;
using Evaluant.Uss.Configuration;
using Evaluant.Uss;

namespace TestUSS.Csv
{
    [TestClass]
    public class TestSqlMapperSpecific : Common
    {
        protected override void CreatePersistenceEngine()
        {
            pef = ConfigLoader.LoadXmlConfig("engines.config", "CsvSpecific");
        }

        [TestMethod]
        public override void Simple()
        {
            Entity p1 = new Entity("Person");
            p1.AddValue("Firstname", "Nicolasµ");
            Entity p2 = new Entity("Person");
            p2.AddValue("Firstname", "Sébastien");
            //p1.AddValue("Partners", p2, State.New);
            p1.AddValue("BestFriend", p2, State.New);

            Transaction t = new Transaction();
            t.Serialize(p1);
            t.Serialize(p2);
            t.Commit(pe);

        }
    }
}
